<template>
  <div>
     <a-layout id="components-layout-demo-top-side-2">
    <a-layout-header class="header">
      <div class="logo" />
      <a-menu
        theme="dark"
        mode="horizontal"
        :default-selected-keys="['2']"
        :style="{ lineHeight: '64px' }"
      >
        <a-menu-item key="1">
          nav 1
        </a-menu-item>
        <a-menu-item key="2">
          nav 2
        </a-menu-item>
        <a-menu-item key="3">
          nav 3
        </a-menu-item>
      </a-menu>
    </a-layout-header>
    <a-layout>
      <a-layout-sider width="200" style="background: #fff">
       <a-menu mode="inline" :default-selected-keys="['1']">
        <a-menu-item key="1">
          <router-link to="/">
          <span class="nav-text">学生管理</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="2">
          <router-link to="/assistant">
          <span class="nav-text">助教管理</span>
          </router-link>
        </a-menu-item>
        <a-menu-item key="3">
          <router-link to="teacher">
          <span class="nav-text">讲师管理</span>
          </router-link>
        </a-menu-item>
      </a-menu>
      </a-layout-sider>
      <a-layout style="padding: 0 24px 24px">
        <a-layout-content
          :style="{ background: '#fff', padding: '24px', margin: 0, minHeight: '280px' }"
        >
       
          <router-view />
        </a-layout-content>
      </a-layout>
    </a-layout>
  </a-layout>
  </div>
</template>

<script>
export default {

}
</script>

<style scoped>
#components-layout-demo-top-side-2 .logo {
  width: 120px;
  height: 31px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px 28px 16px 0;
  float: left;
}
</style>